Skip to content

iq-9075-evk: build sdcc feature DTs as overlays#1952

Open
mchunara007 wants to merge 2 commits intoqualcomm-linux:masterfrom
mchunara007:lemans_fitdtb_sdcc
Open

iq-9075-evk: build sdcc feature DTs as overlays#1952
mchunara007 wants to merge 2 commits intoqualcomm-linux:masterfrom
mchunara007:lemans_fitdtb_sdcc

Conversation

@mchunara007
Copy link
Copy Markdown

@mchunara007 mchunara007 commented Apr 15, 2026

LeMans EVK board supports either eMMC or SD-card, but only one can be
active at a time due to shared host controller. The storage medium is
selected via a dip switch.

Enable metadata based selection for eMMC and SD card as overlays to support both the medium based on the DIP switch selection on the EVK board.

Copy link
Copy Markdown
Contributor

@lumag lumag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message should start by the description of the problem the commit tries to solve.

Comment thread conf/machine/iq-9075-evk.conf
qcom,qcs9075-iot-subtype1 \
qcom,qcs9075v2-iot-subtype1 \
"
FIT_DTB_COMPATIBLE[lemans-evk+lemans-evk-sd-card] = " \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, what happens with the default setting?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, the UEFI would populate 'sdcard' metadata. only in case of eMMC attached, 'emmc' will get populated. So by default this would select the lemans-evk-sd-card overlay

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then why do we need the -sd-card at all?? Why can't it be a default here too, being overriden only if emmc is attached.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/attached/selected/

qcom,qcs9075-iot-subtype1-sdcard \
qcom,qcs9075v2-iot-subtype1-sdcard \
"
FIT_DTB_COMPATIBLE[lemans-evk+lemans-evk-ifp-mezzanine+lemans-evk-emmc] = " \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can there be a non-ifp board with eMMC?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For LeMans EVK, the eMMC is present on ifp mezz board, so non-ifp board with eMMC is not possible.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it explained in the commit message? No.

LeMans EVK board supports either eMMC or SD-card, but only one can be
active at a time due to shared host controller. The storage medium is
selected via a dip switch.

Add the sd card and eMMC device tree overlay for the LeMans EVK to
KERNEL_DEVICETREE in the iq-9075-evk machine configuration to
ensure device tree coverage for LeMans sdcc storage usecase.

Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
@mchunara007
Copy link
Copy Markdown
Author

Commit message should start by the description of the problem the commit tries to solve.

Updated the commit message with problem statement.

Enable metadata based selection for eMMC and SD card as overlays to
support both the medium based on the DIP switch selection on the EVK
board.

Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants